const api = "https://vote.ehangnet.com/";

export default {
    api,
    auth: api+"app/user/wp/auth",
    wxSignature: api+ "app/user/wp/jsapiSignature",
    bindUser:api+"app/user/wp/bind",
    
    // 用户
    checkMobile:api+"app/user/checkMobile",
    userInfo:api+"app/user/info",
    login:api+"app/user/login",
    updatePwd: api+"app/user/pwd",
    register:api+"app/user/register",
    resetPwd: api+"app/user/resetPwd",
    saveAvatar:api+"app/user/saveHeadImg",
    sendRegisterCode:api+"app/user/sendRegisterCode",
    sendResetCode:api+"app/user/sendResetPwdCode",

    // 投票申请
    applyStatus: api+"app/vote/applyStatus/",
    applyList: api+"app/vote/page/my",
    apply:api+"app/vote/saveVoteUserOption",

    // 投票
    vote: api+"app/vote/commit/",
    tradeDetail: api+"app/vote/findVoteUserOptionByHash",
    voteDetail: api+"app/vote/id/",
    voteList:api+"app/vote/page",
    voteRecord:api+"app/vote/page/option/my",
    voteJoinedList:api+"app/vote/page/sub/my",
    voteReceive:api+"app/vote/receiveAsset/",

    // 区块图片
    blockImgs:api+"app/blockImages/",
    blockHeight: api+"app/echain/blockHeight",

    // 公告
    newsDetail:api+"app/voteNews/id/",
    newsList:api+"app/voteNews/page",

}